﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:con="urn:controls"


        x:Class="KP.Test.MainWindow"
        x:Name="_this"    
        
        
        
        Title="MainWindow" 
        Height="243.667" 
        Width="244">



  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    
    <con:SqlTextViewer
      Background="Beige"
      SqlText="{Binding ElementName=_this, Path=Sqltext}"/>
    
    <Button 
      Grid.Row="1" 
      Content="Load sql"
      Click="ButtonBase_OnClick"/>
    
  </Grid>
  
</Window>

  
  